package xyz.yuanjilu.test.aop;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

public class GreetingThrowsAdvice implements ThrowsAdvice{
	
	public void afterReturning(Method method, Object[] args, Object target,Throwable ex) throws Throwable {
		String clientName=(String)args[0];
		System.out.println(target.getClass().getName()+method.getName()+"出现服务"+clientName+"错误"+ex.getMessage());
	}
}
